package Com.amit.IO;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

public class Lab8 
{
	public static void main(String[] args) throws Exception {
		
		FileOutputStream fout=new FileOutputStream("C:\\Users\\NETA JEE\\Desktop\\Amit.txt");
		
		BufferedOutputStream bout=new BufferedOutputStream(fout);
		
		String s1="i am sachin";
		byte[] b=s1.getBytes();
		
		bout.write(b);
		bout.flush();
		bout.close();
		System.out.println("success");
		
		
	}

}
